﻿<UserControl x:Class="XRMSolutions.NToNImportExport.Control.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="400" d:DesignWidth="600" Loaded="UserControl_Loaded" xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input" xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls">

    <Grid x:Name="LayoutRoot" Background="White">
        <ComboBox Height="23" HorizontalAlignment="Left" Margin="98,12,0,0" Name="cmbFirstEntity" VerticalAlignment="Top" Width="218" ItemsSource="{Binding}" SelectionChanged="cmbFirstEntity_SelectionChanged" />
        <dataInput:Label Height="19" HorizontalAlignment="Left" Margin="12,16,0,0" Name="lblFirstEntity" VerticalAlignment="Top" Width="100" Content="First Entity" />
        <ComboBox Height="23" HorizontalAlignment="Left" Margin="98,41,0,0" Name="cmbRelationShipName" VerticalAlignment="Top" Width="218" SelectionChanged="cmbRelationShipName_SelectionChanged" />
        <dataInput:Label Content="Relationship" Height="19" HorizontalAlignment="Left" Margin="12,45,0,0" Name="lblRelashionship" VerticalAlignment="Top" Width="100" />
        <dataInput:Label Content="Second Entity" Height="19" HorizontalAlignment="Left" Margin="12,72,0,0" Name="lblRelatedEntity" VerticalAlignment="Top" Width="85" />
        <dataInput:Label Height="17" HorizontalAlignment="Left" Margin="98,72,0,0" Name="lblSecondEntityName" VerticalAlignment="Top" Width="100" />
        <CheckBox Height="16" HorizontalAlignment="Left" Margin="378,45,0,0" Name="cbUseIds" VerticalAlignment="Top" IsChecked="True" Checked="cbUseIds_Checked" Unchecked="cbUseIds_Checked" />
        <dataInput:Label Height="15" HorizontalAlignment="Left" Margin="334,46,0,0" Name="lblUseIDs" VerticalAlignment="Top" Width="47" Content="Use Ids" />
        <ComboBox Height="23" HorizontalAlignment="Left" Margin="397,12,0,0" Name="cmbFirstEntityColumn" VerticalAlignment="Top" Width="164" IsEnabled="False" />
        <ComboBox Height="23" Margin="397,66,0,0" Name="cmbSecondEntityColumn" VerticalAlignment="Top" IsEnabled="False" HorizontalAlignment="Left" Width="164" />
        <controls:TabControl Margin="7,95,7,7" Name="tcOperations">
            <controls:TabItem Header="Import">
                <Grid Name="grdImportContent">
                    <Button Content="Import" Height="23" HorizontalAlignment="Left" Margin="9,6,0,0" Name="btnStartImport" VerticalAlignment="Top" Width="75" Click="btnStartImport_Click" />
                    <ProgressBar Height="23" Margin="90,6,6,0" Name="pbImportProgress" VerticalAlignment="Top" />
                    <TextBox Margin="9,35,6,6" Name="txtImportLog" />
                </Grid>
            </controls:TabItem>
            <controls:TabItem Header="Export">
                <Grid Name="grdExportContent">
                    <Button Content="Export" Height="23" HorizontalAlignment="Left" Margin="6,6,0,0" Name="btnExport" VerticalAlignment="Top" Width="75" Click="btnExport_Click" />
                    <TextBox Margin="8,35,7,6" Name="txtExportResults" />
                </Grid>
            </controls:TabItem>
        </controls:TabControl>
    </Grid>
</UserControl>
